-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme Templates: Fix display issues of Offline & Day of Event templates across themes #316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twenty Twenty uses a much different markup format for pages, so it's easier to match by using an entirely separate template. This approach should be considered a "patch", if the PWA merges into core, default themes will provide these templates.
a823732
to
3755ab3
Compare
Okay, I've removed the Day of Event template, and tweaked the offline template so that it's very, very simple. I'll update the description to reflect the actual PR now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's fine, only 3 sites in my "2019+" dataset use Twenty Twelve… and it's not totally unreadable, just not great. |
The templates on some default themes use different markup, which causes display issues when trying to use the same templates across themes. To fix this, we should stop trying to fully emulate all themes. This PR removes the global Day of Event template, since the Day of Event stub is created and can use a regular page template. The offline page is called differently, but instead of trying to match the theme directly, we can create a very simple page, which inherits the basic style of the active theme.
Fixes #205, fixes #206
Twenty Thirteen
Twenty Fifteen
Twenty Seventeen
Twenty Twenty
How to test the changes in this Pull Request:
Day of Event:
Offline:
yoursite.wordcamp.test/?wp_error_template=offline